17 minutos atrás, Refe disse:
PREVIEW:
CÓDIGO:
Em creature.cpp procure linha:
g_painter->drawFilledRect(backgroundRect);Ela vai se encontrar logo depois de:
if(drawFlags & Otc::DrawBars && (!isNpc() || !g_game.getFeature(Otc::GameHideNpcNames))) {Substitua por:
TexturePtr m_health_empty_texture = g_textures.getTexture("/images/game/hp"); g_painter->drawTexturedRect(backgroundRect, m_health_empty_texture);Logo abaixo tem as seguintes linhas:
if(drawFlags & Otc::DrawManaBar && isLocalPlayer()) { LocalPlayerPtr player = g_game.getLocalPlayer(); if(player) { backgroundRect.moveTop(backgroundRect.bottom()); g_painter->setColor(Color::black); g_painter->drawFilledRect(backgroundRect);Faça o mesmo na linha igual.
Logo após é só criar uma imagem 24x4 e poe em:
data/images/game/hp.pngSe o seu client não tiver o DrawManaBar, você só faz a primeira parte.
CRÉDITOS:
Pode ser maior que 24x4 ?












info
Grupo: Conde
Registrado: 14/07/10
Posts: 645
Reputação: +321
Gênero: Masculino
PREVIEW:
CÓDIGO:
Em creature.cpp procure linha:
g_painter->drawFilledRect(backgroundRect);Ela vai se encontrar logo depois de:
if(drawFlags & Otc::DrawBars && (!isNpc() || !g_game.getFeature(Otc::GameHideNpcNames))) {Substitua por:
TexturePtr m_health_empty_texture = g_textures.getTexture("/images/game/hp"); g_painter->drawTexturedRect(backgroundRect, m_health_empty_texture);Logo abaixo tem as seguintes linhas:
if(drawFlags & Otc::DrawManaBar && isLocalPlayer()) { LocalPlayerPtr player = g_game.getLocalPlayer(); if(player) { backgroundRect.moveTop(backgroundRect.bottom()); g_painter->setColor(Color::black); g_painter->drawFilledRect(backgroundRect);Faça o mesmo na linha igual.
Logo após é só criar uma imagem 27x4 e poe em:
data/images/game/hp.pngSe o seu client não tiver o DrawManaBar, você só faz a primeira parte.
CRÉDITOS:
@Refe
Editado Fevereiro 24 por Refe